package models

import "gorm.io/gorm"

type Comment struct {
	gorm.Model
	VideoId int    `gorm:"type:int(11)"`
	UserId  int    `gorm:"type:int(11)"`
	Content string `gorm:"type:varchar(500)"`
}

func (c *Comment) CommentAdd(db *gorm.DB) error {
	return db.Debug().Create(c).Error
}
